const fs = require('fs');

let data = [];

for(let i=1;i<=10;i++){
    //读取文件
    let {news} = require('./news_'+i);
    data.push(...news);
}

fs.writeFileSync(__dirname + '/final.json', JSON.stringify({news: data}))